import request from "@/api/request";
import type { AxiosResponse } from "axios";

// 登录
export type LoginParams = {
  username:string,
  password: string,
}
export function login(params:LoginParams):Promise<AxiosResponse>{
  return request("admin/admin_user_login", params, 'post')
}

// 获取配置
export type GetConfigParams = {}
export function getConfig(params:GetConfigParams):Promise<AxiosResponse>{
  return request("config/get_admin_config", params, 'post')
}